package Test;

import Search.Binary;
import SortHelper.*;
import SortMethod.QuickSort02;

public class testBinary {
    public static void main(String[] args) {
        Integer[] data = ArrayGenerator.generateRandomArray(20,10); //生成一个随机数数组
        SortHelper.printArr(data);
        //使用快排使数组有序
        QuickSort02.sort(data);
        SortHelper.printArr(data);
        System.out.println(Binary.search(data,8));
    }
}
